package com.lcxsoft.feign.clients;

import com.lcxsoft.feign.entity.PartnerUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.Map;

@FeignClient(value = "service-partner")
public interface PartnerClient {

    /**
     * 根据partnerId查询实体
     * @param params
     * @return
     */
    @PostMapping("/foodbox/partnerservice/partnerUrl/queryPartnerById")
    PartnerUser queryPartnerById(@RequestBody Map<String, String> params);

    /**
     * 根据shcoolid和总金额进行给代理人加钱
     * @param params
     * @return
     */
    @PostMapping("/foodbox/partnerservice/partnerUrl/addMoneyByDormitoryId")
    boolean addMoneyByDormitoryId(@RequestBody Map<String, Object> params);
}
